package com.xjgc.eip.twice.zxjeip2csjjcss.service.impl;

import org.springframework.stereotype.Service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xjgc.eip.twice.zxjeip2csjjcss.entity.ZxjEip2cSjjcss;
import com.xjgc.eip.twice.zxjeip2csjjcss.mapper.ZxjEip2cSjjcssMapper;
import com.xjgc.eip.twice.zxjeip2csjjcss.service.ZxjEip2cSjjcssService;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author XXX
 * @since 2019-12-06
 */
@Service
public class ZxjEip2cSjjcssServiceImpl extends ServiceImpl<ZxjEip2cSjjcssMapper, ZxjEip2cSjjcss> implements ZxjEip2cSjjcssService {

    @Override
    @DS("proxyDs")
    public IPage<ZxjEip2cSjjcss> queryPageList(ZxjEip2cSjjcss zxjEip2cSjjcss, Integer pageNo, Integer pageSize) {
        QueryWrapper<ZxjEip2cSjjcss> queryWrapper =  new QueryWrapper<>();
        Page<ZxjEip2cSjjcss> page = new Page<ZxjEip2cSjjcss>(pageNo, pageSize);
        queryWrapper.setEntity(zxjEip2cSjjcss);
        IPage<ZxjEip2cSjjcss> pageList = super.page(page, queryWrapper);
        return pageList;
    }
}
